package com.yanqu.road.entity.union;

import com.yanqu.road.entity.DataObject;

import java.util.Objects;

public class UnionBuilding extends DataObject {

	private String unionUid;

	private int buildingType;

	private long experience;

	private int level;

	public String getUnionUid() {
		return unionUid;
	}

	public void setUnionUid(String unionUid) {
		if (!Objects.equals(this.unionUid, unionUid)) {
			this.unionUid = unionUid;
			setUpdateOption();
		}
	}

	public int getBuildingType() {
		return buildingType;
	}

	public void setBuildingType(int buildingType) {
		if (this.buildingType != buildingType) {
			this.buildingType = buildingType;
			setUpdateOption();
		}
	}

	public long getExperience() {
		return experience;
	}

	public void setExperience(long experience) {
		if (this.experience != experience) {
			this.experience = experience;
			setUpdateOption();
		}
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		if (this.level != level) {
			this.level = level;
			setUpdateOption();
		}
	}

}
